package org.jeecg.qis.entity;

import java.io.Serializable;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import org.jeecg.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.UnsupportedEncodingException;

/**
 * @Description: qis-来料检测结果明细表
 * @Author: shaolong
 * @Date: 2022-10-09
 * @Version: V1.0
 */
@Data
@TableName("qis_matdetail_value")
@ApiModel(value = "qis_matdetail_value对象", description = "qis-来料检测结果明细表")
public class QisMatdetailValue implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Excel(name = "主键ID", width = 15)
    @ApiModelProperty(value = "主键ID")
    @TableId
    private Integer recId;
    /**
     * 结果主表ID
     */
    @ApiModelProperty(value = "结果主表ID")
    private String headid;
    /**
     * 参数配置ID
     */
    @Excel(name = "参数配置ID", width = 15)
    @ApiModelProperty(value = "参数配置ID")
    private java.math.BigDecimal dataid;

    /**
     * 样本编号
     */
    @Excel(name = "样本编号", width = 15)
    @ApiModelProperty(value = "样本编号")
    private String sampleNum;
    /**
     * 值
     */
    @Excel(name = "值", width = 15)
    @ApiModelProperty(value = "值")
    private String value;
    /**
     * 1 = OK; 0 = NOK; 2 = N/A
     */
    @Excel(name = "1 = OK; 0 = NOK; 2 = N/A", width = 15)
    @ApiModelProperty(value = "1 = OK; 0 = NOK; 2 = N/A")
    @Dict(dicCode = "isOk")
    private String status;
    /**
     * 上限
     */
    @Excel(name = "上限", width = 15)
    @ApiModelProperty(value = "上限")
    private java.math.BigDecimal lowLimit;
    /**
     * 下限
     */
    @Excel(name = "下限", width = 15)
    @ApiModelProperty(value = "下限")
    private java.math.BigDecimal upLimit;

    @ApiModelProperty(value = "检验类型")
    @TableField(exist = false)
    private String dataType;

    @ApiModelProperty(value = "抽样组ID")
    @TableField(exist = false)
    private String groupId;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
}
